From 17e8b7c8518d50c6c9fdbd7ce850f0b85753787c Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 31 Aug 2004 21:22:58 +0000 Subject: [PATCH] Allow power-off to work with USB. --- gpsbabel/jeeps/gpscom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/jeeps/gpscom.c b/gpsbabel/jeeps/gpscom.c index 1e45be28e..80bee754c 100644 --- a/gpsbabel/jeeps/gpscom.c +++ b/gpsbabel/jeeps/gpscom.c @@ -41,6 +41,8 @@ int32 GPS_Command_Off(const char *port) GPS_Util_Little(); + gps_is_usb = (0 == strncmp(port, "usb:", 4)); + if(!GPS_Serial_On(port, &fd)) return gps_errno; -- 2.30.2